package com.zjb.zjbHome.controllers.pc;

import java.util.List;

import com.jfinal.core.Controller;
import com.zjb.zjbHome.beans.model.Url;

public class Pc0000 extends Controller {

	public void index() {
		this.renderJsp("pc0000.html");
	}
	
	public void loadData() {
		List<Url> listUrl = Url.dao.loadData();

		this.renderJson(listUrl);
	}
	
	public void search() {
		String websiteKey = this.getPara("websiteKey");
		
		List<Url> listUrl = Url.dao.search(websiteKey);
		
		this.renderJson(listUrl);
	}
}
